#include <iostream>
#include <fstream>
#include <cmath>

int main()
{
   std::ifstream in("in.txt");
   std::ofstream out("out.txt");
   int n;
   in >> n;
   int dir = 0;
   int x = 0, y = 0;
   for (int i = 1; i <= n; i++)
   {
      out << x << " " << y << "\n";
      switch (dir)
      {
         case 0:
            x += (i + 1) / 2;
            break;
         case 1:
            y += (i + 1) / 2;
            break;
         case 2:
            x -= (i + 1) / 2;
            break;
         case 3:
            y -= (i + 1) / 2;
            break;
      }
      dir++;
      dir = dir % 4;
   }
   return 0;
}

